# Template file for 'libtiff5'
pkgname=libtiff5
version=4.4.0
revision=1
build_style=gnu-configure
configure_args="--enable-cxx --without-x"
hostmakedepends="automake libtool"
makedepends="jbigkit-devel libjpeg-turbo-devel
 liblzma-devel libzstd-devel zlib-devel"
short_desc="Library and tools for reading and writing TIFF data files"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="libtiff"
homepage="http://www.simplesystems.org/libtiff/"
distfiles="https://download.osgeo.org/libtiff/tiff-${version}.tar.gz"
checksum=917223b37538959aca3b790d2d73aa6e626b688e02dcda272aec24c2f498abed

pre_configure() {
	autoreconf -fi
}

post_install() {
	vlicense COPYRIGHT

	rm -r ${DESTDIR}/usr/share/doc \
		  ${DESTDIR}/usr/share/man \
		  ${DESTDIR}/usr/bin \
		  ${DESTDIR}/usr/include \
		  ${DESTDIR}/usr/lib/*.a \
		  ${DESTDIR}/usr/lib/*.so \
		  ${DESTDIR}/usr/lib/pkgconfig
}
